package com.dragon.stack;

/**
 * @author dragon
 * @version 1.0
 * @description 数组栈的测试
 * @date created in 2018-12-12
 */
public class ArrayStackTest {

    public static void main(String[] args) {
        Stack<Integer> stack = new ArrayStack<Integer>();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);
        stack.push(5);
        System.out.println(stack.toString());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.toString());
    }
}
